package com.vhall.component.entity.interactive.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class CreateReqVo implements Serializable {
    private static final long serialVersionUID = 6898513341538872287L;

    @NotBlank(message = "content不能为空")
    @Size(max = 300, message = "内容过长")
    private String content;

    @NotBlank(message = "room_id不能为空")
    @ParamName("room_id")
    private String roomId;

    @ParamName("room_join_id")
    private Integer roomJoinId;

    @ParamName("is_show")
    @Range(max = 1, min = 0, message = "is_show取值为0或1")
    private Integer isShow;

    @ParamName("account_id")
    private Integer accountId;
}
